Skip to content

Fix missing dot in import.defer/import.source codegen#13974

Closed
Copilot wants to merge 3 commits intomainfrom
copilot/fix-13971
Closed

Fix missing dot in import.defer/import.source codegen#13974
Copilot wants to merge 3 commits intomainfrom
copilot/fix-13971

Conversation

Copy link
Contributor

Copilot AI commented Sep 21, 2025

The codegen was incorrectly printing import phase expressions without the dot separator. Consider:

import.defer("foo");
import.source("bar");

Was being printed as:

importdefer("foo");
importsource("bar");

This fix adds the missing dot (.) between import and the phase string in the ImportExpression codegen implementation. The formatter was already handling this correctly, but the codegen was not consistent.

The change is minimal and surgical - adding a single line to print the dot before the phase string, ensuring the output matches the expected JavaScript syntax for import phase expressions.

Fixes #13971.


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

@graphite-app
Copy link
Contributor

graphite-app bot commented Sep 21, 2025

How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

Copilot AI and others added 2 commits September 21, 2025 13:21
Co-authored-by: Dunqing <29533304+Dunqing@users.noreply.github.com>
Co-authored-by: Dunqing <29533304+Dunqing@users.noreply.github.com>
Copilot AI changed the title [WIP] codegen: missing . when printing import.defer Fix missing dot in import.defer/import.source codegen Sep 21, 2025
Copilot AI requested a review from Dunqing September 21, 2025 13:28
@Boshen
Copy link
Member

Boshen commented Sep 21, 2025

Closed by #13975

@Boshen Boshen closed this Sep 21, 2025
@Boshen Boshen deleted the copilot/fix-13971 branch September 21, 2025 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

codegen: missing . when printing import.defer

3 participants